package com.xt.mvcpilot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomCollectionEditor;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


import com.xt.mvcpilot.AppConstants;


/**
 * 
 * 
 * @author xiaotao
 * @version 2011-12-29
 *
 */
@Controller
@Scope("prototype")
public class AccessController extends AppBasicController{
	
	protected final Logger log = LoggerFactory.getLogger(getClass());
	
	
	/**
	 * index page
	 * 
	 * @return
	 */
	@RequestMapping(value = "/index", method = RequestMethod.GET)
	public String index() {

		return AppConstants.INDEX_VIEW;
	}
	

	/**
	 * login form
	 * 
	 * @return
	 */
	@RequestMapping(value = "/login", method = RequestMethod.GET)
	public String login() {

		return AppConstants.LOGIN_VIEW;
	}

	

}
